import {ProFormProps, QueryFilterProps} from "@ant-design/pro-form";
import React from "react";
import {Col, Row, Space} from "antd";

export const formPropsLayout :Omit<ProFormProps & QueryFilterProps, 'form'> = {
  layout: 'horizontal', labelCol: {span: 6}, wrapperCol: {span: 16}, submitter: {
    render: (props: any, dom: boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null | undefined) =>
      <Row>
        <Col offset={6}>
        <Space>{dom}</Space>
        </Col>
        </Row>
  }
}
